<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Default.aspx.cs"
    Inherits="UserGeneratedContent_Default" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="phActions" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phSubMenu" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" runat="Server">
    <telerik:RadAjaxLoadingPanel ID="loadingPanel" runat="server" Height="75px" Width="75px">
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
            style="border: 0px;" />
    </telerik:RadAjaxLoadingPanel>
    &nbsp;
    <h4>
        Uploads</h4>
    <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowPaging="True"
        PageSize="5" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="dsUploads">
        <MasterTableView DataSourceID="dsUploads">
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn Resizable="False" Visible="False">
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <EditFormSettings>
                <PopUpSettings ScrollBars="None" />
            </EditFormSettings>
            <HeaderStyle ForeColor="White" />
            <Columns>
                <telerik:GridBoundColumn DataField="DisplayName" HeaderText="DisplayName" SortExpression="DisplayName"
                    UniqueName="DisplayName">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn HeaderText="Path" UniqueName="TemplateColumn">
                    <ItemTemplate>
                        <%#string.Concat(Eval("ParentPath"), Eval("Name"), ".aspx")%>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="Total" DataType="System.Int32" HeaderText="Total"
                    UniqueName="Total">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Reviewed" DataType="System.Int32" HeaderText="Reviewed"
                    UniqueName="Reviewed">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Reported" DataType="System.Int32" HeaderText="Reported"
                    UniqueName="Reported">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Suspended" DataType="System.Int16" HeaderText="Suspended"
                    UniqueName="Suspended">
                </telerik:GridBoundColumn>
                <telerik:GridHyperLinkColumn DataNavigateUrlFields="Id" DataNavigateUrlFormatString="Uploads.aspx?PostId={0}"
                    Text="View" UniqueName="Details">
                </telerik:GridHyperLinkColumn>
            </Columns>
        </MasterTableView>
        <PagerStyle Mode="Slider" />
    </telerik:RadGrid>
    <acms:PostUploadSummaryDataSource ID="dsUploads" runat="server" EnablePaging="False"
        OnSelectData="dsUploads_SelectData">
    </acms:PostUploadSummaryDataSource>
    <h4>
        Votes and Ratings</h4>
    <telerik:RadGrid ID="gridVotes" runat="server" AutoGenerateColumns="False" DataSourceID="dsVotes"
        GridLines="None" AllowPaging="True" PageSize="5">
        <MasterTableView DataSourceID="dsVotes">
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn Resizable="False" Visible="False">
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <EditFormSettings>
                <PopUpSettings ScrollBars="None" />
            </EditFormSettings>
            <PagerStyle Mode="Slider" />
            <Columns>
                <telerik:GridBoundColumn DataField="PostDisplayName" HeaderText="Display Name" UniqueName="column">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn HeaderText="Path" UniqueName="TemplateColumn">
                    <ItemTemplate>
                        <%#string.Concat(Eval("ParentPath"), Eval("PostName"), ".aspx")%>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="Average" HeaderText="Average" ReadOnly="True"
                    SortExpression="Average" UniqueName="Average" />
                <telerik:GridBoundColumn DataField="Total" HeaderText="Total" ReadOnly="True" SortExpression="Total"
                    UniqueName="Total" />
                <telerik:GridHyperLinkColumn DataNavigateUrlFields="PostId" DataNavigateUrlFormatString="~/PostUserVotes.aspx?Id={0}"
                    Text="View Votes" UniqueName="column1" />
                <telerik:GridHyperLinkColumn DataNavigateUrlFields="PostId" DataNavigateUrlFormatString="~/PostUserVoteTotals.aspx?Id={0}"
                    Text="View Totals" UniqueName="column2" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <acms:UserPostVoteAverageDataSource ID="dsVotes" runat="server" EnablePaging="False"
        OnSelectData="dsVotes_SelectData">
    </acms:UserPostVoteAverageDataSource>
    <h4>Comments</h4>
    <telerik:RadGrid ID="RadGrid2" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="dsPostComments" GridLines="None" PageSize="5">
        <MasterTableView DataSourceID="dsPostComments">
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn Resizable="False" Visible="False">
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <EditFormSettings>
                <PopUpSettings ScrollBars="None" />
            </EditFormSettings>
            <HeaderStyle ForeColor="White" />
            <Columns>
                <telerik:GridBoundColumn DataField="DisplayName" HeaderText="DisplayName" SortExpression="DisplayName"
                    UniqueName="DisplayName">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn HeaderText="Path" UniqueName="TemplateColumn">
                    <ItemTemplate>
                        <%#string.Concat(Eval("ParentPath"), Eval("Name"), ".aspx")%>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="Total" DataType="System.Int32" HeaderText="Total"
                    UniqueName="Total">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Reviewed" DataType="System.Int32" HeaderText="Reviewed"
                    UniqueName="Reviewed">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Reported" DataType="System.Int32" HeaderText="Reported"
                    UniqueName="Reported">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Suspended" DataType="System.Int16" HeaderText="Suspended"
                    UniqueName="Suspended">
                </telerik:GridBoundColumn>
                <telerik:GridHyperLinkColumn DataNavigateUrlFields="Id" DataNavigateUrlFormatString="Comments.aspx?PostId={0}"
                    Text="View" UniqueName="Details">
                </telerik:GridHyperLinkColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <acms:PostCommentSummaryDataSource ID="dsPostComments" runat="server"
        EnablePaging="False" OnSelectData="dsPostComments_SelectData">
    </acms:PostCommentSummaryDataSource>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="loadingPanel"
        EnableHistory="True">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="gridVotes">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="gridVotes" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="loadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</asp:Content>
